//
//  SearchHistoryView.h
//  搜索功能
//
//  Created by Hello Cai on 2020/10/10.
//  Copyright © 2020 Hello Cai. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^HistoryCleanBlock)(void);
typedef void(^HistoryRecentTextBlock)(NSString *text);

@interface SearchHistoryView : UIView

- (instancetype)initWithFrame:(CGRect)frame textArray:(NSArray *)textArray;

@property (nonatomic, strong)NSMutableArray *textArray;
@property(nonatomic, strong)UIScrollView *scrollView;
@property(nonatomic, copy)HistoryCleanBlock cleanClickBlock;
@property(nonatomic, copy)HistoryRecentTextBlock textClickBlock;

//更新顺序
-(void)updateOrder;
@end

NS_ASSUME_NONNULL_END
